<script>
	export default {
		onLaunch: function() {
			//console.log('================App Launch=================');
			let platfrom= this.$u.os();
			//console.log("platfrom",platfrom);
			
			let clientId="";
			if("android"===platfrom){
				/* let build = plus.android.importClass("android.os.Build");
				let srialNumber = build.SERIAL;  
				if(srialNumber=="unknown"){
					id=plus.device.uuid;
				}else{
					id= srialNumber;
				}
				console.log("设备序列号srialNumber",srialNumber); */
				clientId= plus.push.getClientInfo().clientid;
			}
			//ios
			else{
				clientId=plus.device.uuid;
				//console.log("获取ios设备序列号",id);
			}
			console.log("clientId",clientId);
			this.$u.vuex('vuex_deviceMode',clientId);
		},
		onShow: function() {
			let that=this;
			let count=this.vuex_count;
			if(count>1000){
				that.globalUtil.utilAlert("system error!");
				return;
			}
			count=count+1;
			console.log('App Show',this.vuex_count);
			this.$u.vuex('vuex_count', count);
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	
	.data-empty{
	    min-height: 600rpx;
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
	}
	.hidden-scroll-bar{
		::-webkit-scrollbar{
			display: none;
			height: 0;
			width: 0;
		}
	}
	.border-red{
		border: 1px solid red;
	}
</style>
